/**
 * 
 */
package common;

/**
 * @author vladimir
 * 
 */
public class Print {
	/*
	 * Print with a new line
	 */
	public static void println(Object obj) {
		System.out.println(obj);
	}

	/*
	 * print new line by itself
	 */
	public static void println() {
		System.out.println();
	}

	/*
	 * Print with no line break
	 */
	public static void print(Object obj) {
		System.out.print(obj);
	}

	/*
	 * Print of the array of int in one line
	 */
	// public static void print(int... obj) {
	// for (int i = 0; i < obj.length; i++) {
	// System.out.print(obj[i]);
	// System.out.print(" ");
	// }
	// }

	public static void print(double... obj) {
		for (int i = 0; i < obj.length; i++) {
			System.out.print(obj[i]);
			System.out.print(" ");
		}
	}

	/*
	 * Print of the int array with each member in separate line
	 */
	public static void println(int[] obj) {
		for (int i = 0; i < obj.length; i++) {
			System.out.println(obj[i]);
		}
	}

	/*
	 * Print of the double array with each member in separate line
	 */
	public static void println(double[] obj) {
		for (int i = 0; i < obj.length; i++) {
			System.out.println(obj[i]);
		}
	}
}
